<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>选择人员</title>
	<script src="${ctx}/gzcgwsp/jzfqwczz/YwYnJzfqwczcJbxx/js/selectUser.js" type="text/javascript"></script>
		<script type="text/javascript">
			//设置
			function setvalue(){
			  var select_User=document.getElementById("selectusers");
				var selectId="";
				for (var x=0;x<select_User.length;x++)
				{
					select_User.options[x].selected = true;
					selectId+=select_User.options[x].value+",";
				}
				if(selectId!=""){
					selectId=selectId.substring(0,selectId.length-1);
				}
				if(selectId==""){
					alert("请选择检查人员！");
					return;
				}
				window.returnValue=selectId;
				window.close();
			}
		</script>
</head>
<body bgcolor="" text="#000000" leftmargin="4" topmargin="4">

<form name="selectUserForm" method="post" action="">
<table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolordark=white bordercolor="#CCCCCC" align="center" >
   <tr>
      <td height="10" class="tpoint">人员选择</td>
   </tr>
</table>

<table width="100%" border="2" cellspacing="0" cellpadding="0"  bordercolordark=white bordercolor="#CCCCCC" align="center" >
<tr>
 <td height="10%" class="tleft" width="12%" align="right"><font color="red">*</font>人员选择：</td>
  <td height="10%" class="tleft" width="10%" align="left"> 
  <select name="showUsers" size="15" style="width:16em" multiple onDblClick="JavaScript:addUser(document.selectUserForm.showUsers,document.selectUserForm.selectusers)">
		<c:forEach var="user" items="${users}" varStatus="stat">
			<option value="${user.userName}">${user.userName}</option>
		</c:forEach>
  </select>
  </td>
   <td class="tright" width="5%">
 	 <table>
	<tr>
	  <td height="35">
	  <input type="button" value="添加" onclick="javascript:addUser(document.selectUserForm.showUsers,document.selectUserForm.selectusers)"></input>
	  </td>
	</tr>
	<tr>
	  <td height="35">
	  	<input type="button" value="添加全部" onclick="javascript:addUserAll(document.selectUserForm.showUsers,document.selectUserForm.selectusers)"></input>
	  </td>
	</tr>
	<tr>
	  <td height="35">
	   <input type="button" value="删除" onclick="javascript:delUser('',document.selectUserForm.selectusers)"></input>
	  </tr>
	<tr>
	  <td height="35">
	  <input type="button" value="删除全部" onclick="javascript:delUserAll('',document.selectUserForm.selectusers)"></input>
	</td>
	</tr>
  </table>
 </td>
  <td width="" class="tright">
  <select name="selectusers" id="selectusers" size="15" onDblClick="delUser('',document.selectUserForm.selectusers)" style="width:16em" multiple>
	
  </select>
  <input type="hidden" name="selectId" id="selectId">
  </td>
</tr>
<tr>
<td></td>
<td></td>
<td colspan="2">
<div align="" >
<input type="button" value="保存" onclick="setvalue();"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="取消" onclick="window.close();"/>
</div>
</td>
</tr>
</table>

</form>
</body>

</html>



